﻿using SqlSuarEntity;
using System.Collections.Generic;
using XXX.Models;

namespace LH.Model.ST
{
    public class ST_MaterailOutApp
    {
        public ST_MaterailOutApp(Head head, List<Body> bodies)
        {
            this.head = head;
            this.bodies = bodies;
        }

        public ST_MaterailOutApp(Head head, Body body)
        {
            this.head = head;
            this.bodies = new List<Body> { body };
        }

        //实体
        public Head head;
        public List<Body> bodies;

        

        public class Head
        {
            public string bWireless { get; set; }
            public string id { get; set; } 

            public string csource { get; set; }
            /// <summary>
            /// Desc:
            /// Default:
            /// Nullable:True
            /// </summary>           
            public string cItem_class { get; set; }

            /// <summary>
            /// Desc:
            /// Default:
            /// Nullable:True
            /// </summary>           
            public string cItemCode { get; set; }

            /// <summary>
            /// Desc:
            /// Default:
            /// Nullable:True
            /// </summary>           
            public string cName { get; set; }

            /// <summary>
            /// Desc:
            /// Default:
            /// Nullable:True
            /// </summary>           
            public string cItemCName { get; set; }
            
            /// <summary>
            /// 单据日期
            /// </summary>
            public string ddate { get; set; }
            /// <summary>
            /// 出库单号 收发单据号
            /// </summary>
            public string ccode { get; set; }
            /// <summary>
            /// 收发类别编码
            /// </summary>
            public string crdcode { get; set; }
            public string cdepcode { get; set; }
            public string cpersoncode { get; set; }

            public string vt_id { get; set; }
            public string iswfcontrolled { get; set; }
            
            /// <summary>
            /// 审核人
            /// </summary>
            public string chandler { get; set; }
            public string cmemo { get; set; } 
            /// <summary>
            /// 制单人
            /// </summary>
            public string cmaker { get; set; }
            public string cdefine1 { get; set; }
            public string cdefine2 { get; set; }
            public string cdefine3 { get; set; }
            public string cdefine4 { get; set; }
            public string cdefine5 { get; set; }
            public string cdefine6 { get; set; }
            public string cdefine7 { get; set; }
            public string cdefine8 { get; set; }
            public string cdefine9 { get; set; }
            public string cdefine10 { get; set; } 
            public string cdefine11 { get; set; }
            public string cdefine12 { get; set; }
            public string cdefine13 { get; set; }
            public string cdefine14 { get; set; }
            public string cdefine15 { get; set; }
            public string cdefine16 { get; set; }
           
        
        }

        public class Body
        {
            public string editprop { get; set; }
            public string autoid { get; set; }
            public string id { get; set; }
            public string irowno { get; set; }

            /// <summary>
            /// 存货编码
            /// </summary>
            public string cinvcode { get; set; }
            public string cinvaddcode { get; set; }
            public string cinvname { get; set; } 
            public string creplaceitem { get; set; }
            public string cposition { get; set; }
           
            public string iid { get; set; }
            public string cfree1 { get; set; }
            public string cfree2 { get; set; }
            public string cfree3 { get; set; }
            public string cfree4 { get; set; }
            public string cfree5 { get; set; }
            public string cfree6 { get; set; }
            public string cfree7 { get; set; }
            public string cfree8 { get; set; }
            public string cfree9 { get; set; }
            public string cfree10 { get; set; }
            public string cbatch { get; set; }
            public string iinvexchrate { get; set; }
            public string inum { get; set; }
            /// <summary>
            /// 数量
            /// </summary>
            public string iquantity { get; set; }
           
            public string dvdate { get; set; }
          
            public string foutquantity { get; set; }
            public string foutnum { get; set; } 
            public string cassunit { get; set; }
            public string dmadedate { get; set; }
            public string dexpirationdate { get; set; }
            public string iexpiratdatecalcu { get; set; }

            public string cbmemo { get; set; }

            public string cwhcode { get; set; }
            public string cdefine22 { get; set; }
            public string cdefine23 { get; set; }
            public string cdefine24 { get; set; }
            public string cdefine25 { get; set; }
            public string cdefine26 { get; set; }
            public string cdefine27 { get; set; }
            public string cdefine28 { get; set; }
            public string cdefine29 { get; set; }
            public string cdefine30 { get; set; }
            public string cdefine31 { get; set; }
            public string cdefine32 { get; set; }
            public string cdefine33 { get; set; }
            public string cdefine34 { get; set; }
            public string cdefine35 { get; set; }
            public string cdefine36 { get; set; }
            public string cdefine37 { get; set; }
        
            /// <summary>
            /// 产品编码
            /// </summary>
            public string invcode { get; set; }
            public string invname { get; set; }
            public string invstd { get; set; }  
            public string cbatchproperty1 { get; set; }
            public string cbatchproperty2 { get; set; }
            public string cbatchproperty3 { get; set; }
            public string cbatchproperty4 { get; set; }
            public string cbatchproperty5 { get; set; }
            public string cbatchproperty6 { get; set; }
            public string cbatchproperty7 { get; set; }
            public string cbatchproperty8 { get; set; }
            public string cbatchproperty9 { get; set; }
            public string cbatchproperty10 { get; set; }

            public string impoids { get; set; }
            public string citemcode { get; set; }
            public string citem_class { get; set; }
            public string cname { get; set; }
            public string citemcname { get; set; }
            public string imassdate { get; set; }
            public string cinvouchcode { get; set; }
            public string imaterialfee { get; set; }
            public string iomomid { get; set; }
            public string iomodid { get; set; }
            public string comcode { get; set; }
            public string cmassunit { get; set; }
            public string cposname { get; set; }
            public string isquantity { get; set; }
            public string ismaterialfee { get; set; }
            public string dmsdate { get; set; }
            public string cmocode { get; set; }
            public string imoseq { get; set; }
            public string cmolotcode { get; set; }
            public string iopseq { get; set; }
            public string copdesc { get; set; }
            public string cmworkcentercode { get; set; }
            public string cmworkcenter { get; set; }
             
                    
            /// <summary>
            /// Desc:
            /// Default:
            /// Nullable:True
            /// </summary>           
            public string cciqbookcode { get; set; }

            /// <summary>
            /// Desc:
            /// Default:
            /// Nullable:True
            /// </summary>           
            public string cservicecode { get; set; }

            /// <summary>
            /// Desc:
            /// Default:0
            /// Nullable:True
            /// </summary>           
            public string iordertype { get; set; }

            /// <summary>
            /// Desc:
            /// Default:
            /// Nullable:True
            /// </summary>           
            public string iorderdid { get; set; }

            /// <summary>
            /// Desc:
            /// Default:
            /// Nullable:True
            /// </summary>           
            public string iordercode { get; set; }

            /// <summary>
            /// Desc:
            /// Default:
            /// Nullable:True
            /// </summary>           
            public string iorderseq { get; set; }

            /// <summary>
            /// Desc:
            /// Default:
            /// Nullable:True
            /// </summary>           
            public string isotype { get; set; }

            /// <summary>
            /// Desc:
            /// Default:
            /// Nullable:True
            /// </summary>           
            public string isodid { get; set; }

            /// <summary>
            /// Desc:
            /// Default:
            /// Nullable:True
            /// </summary>           
            public string csocode { get; set; }

            /// <summary>
            /// Desc:
            /// Default:
            /// Nullable:True
            /// </summary>           
            public int? isoseq { get; set; }

            /// <summary>
            /// Desc:
            /// Default:
            /// Nullable:True
            /// </summary>           
            public string corufts { get; set; }

            /// <summary>
            /// Desc:
            /// Default:
            /// Nullable:True
            /// </summary>           
            public string crejectcode { get; set; }

            /// <summary>
            /// Desc:
            /// Default:
            /// Nullable:True
            /// </summary>           
            public string ipesodid { get; set; }

            /// <summary>
            /// Desc:
            /// Default:
            /// Nullable:True
            /// </summary>           
            public byte? ipesotype { get; set; }

            /// <summary>
            /// Desc:
            /// Default:
            /// Nullable:True
            /// </summary>           
            public string cpesocode { get; set; }

            /// <summary>
            /// Desc:
            /// Default:
            /// Nullable:True
            /// </summary>           
            public int? ipesoseq { get; set; }

            /// <summary>
            /// Desc:
            /// Default:
            /// Nullable:True
            /// </summary>           
            public string cbsysbarcode { get; set; }

            /// <summary>
            /// Desc:
            /// Default:
            /// Nullable:True
            /// </summary>           
            public string ipickedquantity { get; set; }

            /// <summary>
            /// Desc:
            /// Default:
            /// Nullable:True
            /// </summary>           
            public string ipickednum { get; set; }

            /// <summary>
            /// Desc:
            /// Default:
            /// Nullable:True
            /// </summary>           
            public string cSourceMOCode { get; set; }

            /// <summary>
            /// Desc:
            /// Default:
            /// Nullable:True
            /// </summary>           
            public string iSourceMODetailsid { get; set; }

            /// <summary>
            /// Desc:
            /// Default:
            /// Nullable:True
            /// </summary>           
            public string cplanlotcode { get; set; }

            /// <summary>
            /// Desc:
            /// Default:
            /// Nullable:True
            /// </summary>           
            public string cfactorycode { get; set; }

        }
    }
}
